package com.yc.pre.entity.bean;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @ClassName PreRolePermissionConfig
 * @Description 权限配置类
 * @Date 2021/02/10 15:24:30
 * @Created by ccc-j
 * @email ccc-ju@outlook.com
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("pre_role_permission_config")
public class PreRolePermissionConfig {
    @ApiModelProperty(value = "角色ID")
    @TableId("role_id")
    private Long roleId;

    @ApiModelProperty(value = "角色名称")
    private String roleName;

    @ApiModelProperty(value = "管理员权限(0:否，1：是)")
    private Integer managerAuthority;

    @ApiModelProperty(value = "标注权限(0：否，1：是)")
    private Integer signAuthority;

    @ApiModelProperty(value = "是否删除（0：未删除，1：已删除）")
    private Integer isDeleted;

    @ApiModelProperty(value = "创建时间")
    @JSONField(format = "yyyy-MM-dd hh:MM:ss")
    private Date gmtCreate;

    @ApiModelProperty(value = "更新时间")
    @JSONField(format = "yyyy-MM-dd hh:MM:ss")
    private Date gmtModify;

    @ApiModelProperty(value = "删除时间")
    @JSONField(format = "yyyy-MM-dd hh:MM:ss")
    private Date gmtDeleted;
}
